package com.anche.cywebnew.Service.systemManager;

import com.anche.cywebnew.DTO.ModuleTreeDTO;
import com.anche.cywebnew.Pojo.systemManager.SysUser;
import com.anche.cywebnew.Pojo.systemManager.TerminalInfo;
import com.github.pagehelper.Page;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserService {
    SysUser findUserByLoginName(String loginname);

    TerminalInfo findTerminalByIp(HttpServletRequest request);

    void userSucessLogin(HttpServletRequest request, String loginName);

    List<ModuleTreeDTO> getUserPerms(String id);

    void addUser(SysUser sysUser);

    Page<SysUser> getUserPager(Integer page, Integer limit, SysUser sysUser);

    void setUser(SysUser sysUser);

    void delUser(String id);

    List<Map<String, String>> getQuickAccess(String id);
}
